<?php
namespace API\Controller;
use Think\Controller;
/**
* clud事务处理逻辑
*/
class ClubController extends PublicController
{
	public function clublist(){
		if ($_SERVER['REQUEST_METHOD']=="POST") {
        $page = isset($_POST['page']) ? $_POST['page'] : 1;
        $pageSize = isset($_POST['pagesize']) ? $_POST['pagesize'] : 8;
        }else {
        $page = isset($_GET['page']) ? $_GET['page'] : 1;
        $pageSize = isset($_GET['pagesize']) ? $_GET['pagesize'] : 8;
        }
        $offset = ($page - 1) * $pageSize;
        $club = M("Club");
        $cluddata = $club ->field(array('audit','uid'),true)->order('hittime desc')->limit($offset ." , ".$pageSize)->select();
        $sentdate = array('code'=>200,"cludlist"=>$cluddata);
        return PublicController::yuejian($sentdate);
       // print_r($cluddata);
	}
	
}